import type { PageKeys } from './pages';

/**
 * 定义
 * 跳转到 tabBar 页面，并关闭其他所有非 tabBar 页面
 */
export interface SwitchTab {
  (name: PageKeys['home']): Promise<any>;

  (name: PageKeys['puppetTaabarPage_1']): Promise<any>;

  (name: PageKeys['puppetTaabarPage_2']): Promise<any>;

  (name: PageKeys['puppetTaabarPage_3']): Promise<any>;

  (name: PageKeys['mine']): Promise<any>;
}

/**
 * 定义
 * 关闭当前页面，跳转到应用内的某个页面
 */
export interface RedirectTo { }

/**
 * 定义
 * 关闭所有页面，打开到应用内的某个页面。
 */
export interface ReLaunch { }
